package com.moli.iov.base.model.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 车辆基础授权状态表
 * </p>
 *
 * @author wanghualin
 * @since 2020-02-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("vehicle_base_auth")
public class VehicleBaseAuth implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 车架号
     */
    private String vin;

    /**
     * 登录授权(0:未授权1:已授权)
     */
    private Integer loginAuthStatus;

    /**
     * 车载终端报警监控(0:未授权1:已授权)
     */
    private Integer terminalAuthStatus;

    /**
     * 围栏报警授权(0:未授权1:已授权)
     */
    private Integer fenceAlarmAuthStatus;

    /**
     * 失联报警授权(0:未授权1:已授权)
     */
    private Integer lostAlarmAuthStatus;

    /**
     * 里程变异报警授权(0:未授权1:已授权)
     */
    private Integer mileageAlarmAuthStatus;

    /**
     * 创建时间
     */
    private Date gmtCreate;

    /**
     * 更新时间
     */
    private Date gmtModified;

    /**
     * 删除标识
     */
    private Integer isDelete;
    /**
     * 创建人
     */
    @TableField(value="create_user")
    private String createUser;
    /**
     * 修改人
     */
    @TableField(value="modified_user")
    private String modifiedUser;

    public static final String ID = "id";

    public static final String VIN = "vin";

    public static final String VEHICLE_AUTH_STATUS = "vehicle_auth_status";

    public static final String LOGIN_AUTH_STATUS = "login_auth_status";

    public static final String TERMINAL_AUTH_STATUS = "terminal_auth_status";

    public static final String FENCE_ALARM_AUTH_STATUS = "fence_alarm_auth_status";

    public static final String LOST_ALARM_AUTH_STATUS = "lost_alarm_auth_status";

    public static final String MILEAGE_ALARM_AUTH_STATUS = "mileage_alarm_auth_status";

    public static final String GMT_CREATE = "gmt_create";

    public static final String GMT_MODIFIED = "gmt_modified";

    public static final String IS_DELETE = "is_delete";

}
